package com.snail.cloud.dao;

import com.snail.cloud.model.IotUser;
import com.snail.cloud.model.vo.IotUserVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface IotUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(IotUser record);

    int insertSelective(IotUser record);

    IotUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(IotUser record);

    int updateByPrimaryKey(IotUser record);

    IotUser selectByUsername(String username);

    IotUserVo selectUserVoByUsername(String username);

    IotUser selectByPhone(String phone);

    List<IotUser> selectAll();
}